package com.atguigu04.set;

import org.junit.Test;

import java.time.LocalDate;
import java.util.HashSet;
import java.util.Iterator;
import java.util.Set;

public class SetTest {
    @Test
    public void t1(){
        Set set=new HashSet();
        set.add("aa");
        set.add("bb");
        set.add(123);
        set.add(new Student("tom",23));

        Iterator iterator=set.iterator();
        for (Object o: set) {
            System.out.println(o);
        }


        LocalDate localDate=LocalDate.of(2023,11,26);
        System.out.println(localDate.plusDays(28));

    }
}
